home *** CD-ROM | disk | FTP | other *** search
- #include "defines.h"
- #include "includes.h"
-
- struct mp3ent *zap(struct mp3ent *zappa)
- {
- struct mp3ent *temp, *prev, *next;
-
- temp=zappa;
- prev=zappa->prev;
- next=zappa->next;
-
- if (((zappa==next)&&(zappa==prev)))
- {
- zappa=NULL;
- } else
- {
- prev->next=zappa->next;
-
- next->prev=zappa->prev;
-
- zappa=next;
- }
-
- /* now, get my damn ram back. */
-
- free (temp->fname);
- free (temp);
-
- return zappa;
- }
-